<template>
  <div id="app">
            <router-view></router-view>


  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {

    };
  },
  created () {
    this.islogin()
  },
  methods: {
    islogin () {
      this.$http.get("http://medical.qingguo188.com/user/islogin").then(
        res => {
          if(res.data.status == 0) {
            this.$router.push({ path: "/" });
          }
          if(res.data.status == 2 || res.data.status == 3) {
            this.$layer.alert(res.data.$message);
            this.$router.push({ path: "/" });
          }
        },
        () => {
          this.$layer.alert("网络错误！");
        }
      );
    },
  }
};
</script>

<style>
/*
html5doctor.com Reset Stylesheet
v1.4.1
2010-03-01
Author: Richard Clark - http://richclarkdesign.com
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

input,
button {
  outline: none;
}
button {
  border: 0;
  vertical-align: middle;
}
body {
  line-height: 1;
  color: #333;
  font-size: 14px;
  font-family: "微软雅黑";
  width: 100%;
  height: 100%;
  background:url(./assets/bd_bg.jpg);

}

input[type="text"],
input[type="password"] {
  height: 30px;
  line-height: 30px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 0 5px;
}

:focus {
  outline: 1;
}

article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
  display: block;
}

nav ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

a {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted #000;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 0;
  padding: 0;
}

img {
  vertical-align: middle;
}

input,
select {
  vertical-align: middle;
}

.clearfix {
  overflow: hidden;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

ul,
ol,
li {
  list-style: none;
}

em,
i {
  font-style: normal;
}

a {
  text-decoration: none;
  color: #333333;
}
.btn {
  padding: 10px 30px;
  display: inline-block;
  background: #008df6;
  color: #ffffff;
  cursor: pointer;
  border-radius: 5px;
}


</style>
